<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .primary {
        color: red;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <!-- <button v-on:click="save">保存</button> -->
      <button @click="save">保存</button>
      <button @click="add">添加</button>
    </div>
    <script type="module">
      import { createApp } from "./vue.esm-browser.js";
      const app = createApp({
        data() {
          return {};
        },
        methods: {
          save() {
            console.log("hello");
          },
          add() {
            console.log("hello add");
          },
        },
      });
      app.mount("#app"); //挂载
    </script>
  </body>
</html>
